package com.rd.student.jike.class1.jiangwanli;

import java.util.Scanner;

public class numJinZiTa {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        for (int i = 1;i <= num;i++)
        {
            for (int j = 1;j <= num-i;j++)
            {
                System.out.print(" ");
            }
            for (int k = i;k >= 1;k--)
            {
                System.out.print(" " + k);
            }
            for (int l = 2;l <= i;l++)
            {
                System.out.print(" " + l);
            }
            System.out.println(" ");
        }
    }
}
